<?php echo $this->partial("sidebar.phtml", array('type' => 'trend','count' => array('trends' => count($this->alldata), 'products' => count($this->productdata), 'social' => 202))); ?>
<div class="trends-grid-block isotope products-scroller">

        <?php
            foreach($this->alldata as $Key=>$Val)
            {
                ?>

                <div class="product-grid" >
                    <div class="product-details" style="background:url('<?php echo PRODUCTS_PATH."/".$Val['images']; ?>') no-repeat scroll center 30% rgba(0, 0, 0, 0);background-size:127px 140px;">
                        <p class="text-right">$<?php echo $Val['price'] ?></p>

                        <div class="product-desc">    
                            <p class='product-title'><a href='#'><?php echo $Val['prod_name']; ?></a></p>
                            <p class='category'><a href='#'>Men</a> | <a href='#'>Footwear</a></p>
                        </div>
                    </div>
                    <div class="social-details">
                        <p class="pull-left">2 Likes</p>
                        <p class="pull-right">4 Shares</p>
                    </div>
                </div>
                <?php
            }
        ?>

    </div>